import Http from '../http';

interface Config {
    code : {
        name : string;
        code : string | number;
        children : Config
    }
}

export async function queryDeviceTypeConfApi() : Promise<Config | null> {
    const { data } = await Http.get('conf/deviceType')
    return data
}

export async function queryStrategyTypeConfApi() : Promise<Config | null> {
    const { data } = await Http.get('conf/strategyType')
    return data
}